#include <cstdio>
#include <algorithm>
#include <cmath>
using namespace std;
int main(void){
    int r;
    int w,l;
    int c=1;
    while(~scanf("%d",&r)){
        if(r==0){
            break;
        }
        scanf("%d%d",&w,&l);
        if(sqrt(w*w+l*l)>2*r){
            printf("Pizza %d does not fit on the table.\n",c++);
        }
        else{
            printf("Pizza %d fits on the table.\n",c++);
        }
    }
    return 0;
}
